/* Code Essences – site styles (no framework). Breakpoints: 1024px tablet, 767px phone. */

@font-face{font-family:'Open Sans';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/open-sans-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/open-sans-400-latin.woff2) format('woff2');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}
@font-face{font-family:'Poppins';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/poppins-400-italic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/poppins-400-italic-latin.woff2) format('woff2');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}
@font-face{font-family:'Poppins';font-style:normal;font-weight:300;font-display:swap;src:url(/fonts/poppins-300-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:300;font-display:swap;src:url(/fonts/poppins-300-latin.woff2) format('woff2');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}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/poppins-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/poppins-400-latin.woff2) format('woff2');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}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/poppins-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/poppins-500-latin.woff2) format('woff2');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}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/poppins-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/poppins-600-latin.woff2) format('woff2');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}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/poppins-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/poppins-700-latin.woff2) format('woff2');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}
@font-face{font-family:'Poppins';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/poppins-800-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/poppins-800-latin.woff2) format('woff2');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 {
  --text: #7d8488;
  --heading: #263238;
  --ink: #000;
  --blue: #319eee;
  --teal: #21d1b0;
  --grad: linear-gradient(60deg, #319eee 0%, #21d1b0 100%);
  --grad-icon: linear-gradient(120deg, #31a0ed 0%, #22d0b2 100%);
  --purple-top: #7b72cf;
  --purple-bottom: #4a409c;
  --purple-icon: #5952af;
  --highlight: #d9d6ff;
  --soft: #f6f6f6;
  --line: #ececec;
  --radius: 10px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px rgba(103, 103, 103, .16);
  --shadow-soft: 0 5px 30px rgba(210, 210, 210, .5);
  --shadow-icon: 0 15px 30px rgba(47, 169, 227, .22);
  --header-h: 90px;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; font: 400 15px/1.9 Poppins, system-ui, sans-serif; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 15px; color: var(--heading); font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1.28em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; transition: color .2s; }
strong, b { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
.icon { width: 1em; height: 1em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -60px; left: 15px; z-index: 100; padding: 10px 20px; border-radius: var(--radius); background: #fff; color: var(--heading); box-shadow: var(--shadow-card); }
.skip-link:focus { top: 15px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 15px; }
.narrow { max-width: 630px; margin-inline: auto; }
.center { text-align: center; }
.section { position: relative; padding-block: 100px; }
.section--flush-top { padding-top: 0; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 25px; border: 0; border-radius: 50px; background: var(--grad); color: #fff; font-size: 15px; font-weight: 500; line-height: 1.4; cursor: pointer; box-shadow: 0 0 0 0 rgba(49, 158, 238, .2); transition: box-shadow .3s, opacity .2s; }
.btn:hover, .btn:focus-visible { color: #fff; box-shadow: 0 0 0 8px rgba(49, 158, 238, .12); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn--sm { padding: 10px 25px; }
.btn__arrow { display: grid; place-items: center; width: 25px; height: 25px; margin-right: -8px; border-radius: 50%; background: #fff; color: var(--blue); }
.btn__arrow .icon { width: 11px; height: 11px; }
.actions { margin-top: 35px; }

/* ---------------------------------------------------------------- header + navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 0 40px rgba(0, 0, 0, .1); transition: transform .3s ease; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 7px; color: #000; font-size: 24px; line-height: 1; white-space: nowrap; }
.logo img { width: 80px; height: 80px; }
.logo--light { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 10px; }
.menu { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.menu > li { position: relative; }
.menu__link { display: flex; align-items: center; gap: 6px; height: var(--header-h); padding: 0 10px; border: 0; background: none; color: #000; font-size: 15px; font-weight: 500; cursor: pointer; }
.menu__link .icon { width: 9px; height: 9px; transition: transform .2s; }
.menu__link:hover, .menu__link.is-active, .menu__item--sub.is-active > .menu__link { color: var(--blue); }
.submenu { position: absolute; top: calc(100% - 10px); left: -10px; min-width: 262px; margin: 0; padding: 10px 0; list-style: none; border-radius: var(--radius); background: #fff; box-shadow: 0 0 30px rgba(0, 0, 0, .07); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; }
.menu__item--sub:hover .submenu, .menu__item--sub:focus-within .submenu, .menu__item--sub.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.menu__item--sub:hover .menu__link .icon, .menu__item--sub.is-open .menu__link .icon { transform: rotate(180deg); }
.submenu__link { display: block; margin: 0 10px; padding: 8px 20px; border-radius: 7px; color: #515b60; }
.submenu__link:hover, .submenu__link.is-active { background: #f2f6fa; color: var(--blue); }
.site-nav__cta { margin-left: 10px; }
.nav-toggle { display: none; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: var(--radius); background: #f2f6fa; color: #000; font-size: 20px; cursor: pointer; }
.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ---------------------------------------------------------------- shared pieces */
.tags { display: inline-flex; align-items: center; flex-wrap: wrap; margin: 0 0 15px; padding: 3px; border-radius: 50px; background: #ebebeb; font-size: 14px; line-height: 28.5px; color: var(--text); }
.tags b { padding: 0 15px; border-radius: 50px; background: #fff; color: var(--heading); font-weight: 600; }
.tags span { padding: 0 20px 0 15px; }
.tags--light { background: rgba(255, 255, 255, .2); color: #fff; }

.title { margin: 0 0 15px; color: var(--heading); font-size: 37.5px; font-weight: 700; line-height: 1.6; }
.title mark { background: linear-gradient(transparent 50%, var(--highlight) 50%, var(--highlight) 85%, transparent 85%); color: inherit; }
.title--light { color: #fff; }
.title--light mark { background: linear-gradient(transparent 50%, rgba(255, 255, 255, .21) 50%, rgba(255, 255, 255, .21) 85%, transparent 85%); }
.prose > * + .checks { margin-top: 25px; }

.icon-circle { display: grid; place-items: center; flex: none; width: 70px; height: 70px; border-radius: 50%; background: var(--grad-icon); color: #fff; font-size: 24px; box-shadow: var(--shadow-icon); }
.icon-circle--lg { width: 90px; height: 90px; font-size: 30px; }
.icon-circle--center { margin: 0 auto 15px; }

.checks { margin: 25px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; color: #000; font-weight: 500; line-height: 1.6; }
.checks li:last-child { margin-bottom: 0; }
.checks li > .icon { box-sizing: content-box; width: 13px; height: 13px; padding: 6px; border-radius: 50%; background: rgba(49, 162, 235, .15); color: var(--blue); }
.checks--cards li { margin-bottom: 10px; padding: 15px 20px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.checks--cards li > .icon { width: 11px; height: 11px; padding: 7.5px; background: linear-gradient(0deg, #31a0ed, #22d0b2); color: #fff; }
.checks--inline { display: flex; flex-wrap: wrap; gap: 10px 25px; }
.checks--inline li { margin: 0; color: #fff; }
.checks--inline li > .icon { width: 11px; height: 11px; background: rgba(255, 255, 255, .14); color: #fff; }

/* decorative backgrounds (rotated rounded squares) */
.bg-soft, .bg-purple, .bg-dark { position: relative; overflow: hidden; isolation: isolate; }
.bg-soft { background: var(--soft); }
.bg-purple { background: linear-gradient(180deg, var(--purple-top) 0%, var(--purple-bottom) 100%); color: rgba(255, 255, 255, .7); }
.bg-dark { background: linear-gradient(160deg, #2c333e 0%, #1b1f27 100%); color: rgba(255, 255, 255, .75); }
.bg-soft::before, .bg-soft::after, .bg-purple::before, .bg-purple::after, .bg-dark::before, .bg-dark::after {
  content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; border-radius: 48px; transform: rotate(45deg); pointer-events: none;
}
.bg-soft::before, .bg-soft::after { background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .2)); box-shadow: 0 0 60px rgba(0, 0, 0, .03); }
.bg-purple::before, .bg-purple::after, .bg-dark::before, .bg-dark::after { background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); }
.bg-soft::before, .bg-purple::before, .bg-dark::before { top: -150px; left: -170px; }
.bg-soft::after, .bg-purple::after, .bg-dark::after { right: -150px; bottom: -170px; }

/* ---------------------------------------------------------------- heroes */
.hero-home { display: flex; align-items: center; min-height: 810px; padding-block: 120px; background: #7e75cf url(/img/codeessences-fejlec-hatter.jpg) center / cover no-repeat; color: rgba(255, 255, 255, .7); }
.hero-home__content { max-width: 535px; }
.hero-home h1 { margin: 0 0 25px; color: #fff; font-size: 54px; line-height: 1.4; }
.hero-home__lead { margin: 0; color: #fff; font-size: 21px; font-weight: 700; line-height: 1.5; }
.hero-home .actions { margin-top: 50px; }

.hero-photo { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 500px; padding-block: 80px; background: #e9e9e9; }
.hero-photo__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.hero-photo h1 { margin: 0 0 25px; color: #000; font-size: clamp(54px, 9vw, 130px); font-weight: 400; line-height: 1; }
.hero-photo p { margin: 0; color: #000; font-family: "Open Sans", sans-serif; font-size: 20px; line-height: 1.9; }
.hero-photo--light h1, .hero-photo--light p { color: #fff; }
/* fade over the photo on the text side, so the title and lead stay readable on busy photos */
.hero-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .7) 45%, rgba(255, 255, 255, 0) 80%); }
.hero-photo--light::after { background: linear-gradient(90deg, rgba(8, 12, 24, .78) 0%, rgba(8, 12, 24, .55) 45%, rgba(8, 12, 24, 0) 80%); }

.hero-dark { padding-block: 90px; text-align: center; }
.hero-dark h1 { margin: 0 0 10px; color: #fff; font-size: 48px; font-weight: 600; line-height: 1.6; }
.hero-dark p { margin: 0; font-size: 14px; }
.icon-ring { display: grid; place-items: center; width: 90px; height: 90px; margin: 0 auto 40px; border-radius: 50%; background: #fff; color: var(--blue); font-size: 30px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .15); }

.page-head { padding-block: 60px 50px; text-align: center; }
.page-head .icon-circle { margin: 0 auto 15px; }
.page-head h1, .page-head h2 { margin-bottom: 15px; font-size: 37.5px; line-height: 1.6; }
.page-head p { max-width: 600px; margin-inline: auto; }

/* ---------------------------------------------------------------- two-column blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px 30px; }
.split--media-wide { grid-template-columns: 5fr 7fr; }
.split--text-wide { grid-template-columns: 7fr 5fr; }
.media { position: relative; margin: 0; }
.media img { width: 100%; border-radius: var(--radius); }
.media--round img { border-radius: var(--radius-lg); }
.media__badge { position: absolute; top: 35px; left: -32px; display: grid; place-items: center; width: 65px; height: 65px; border-radius: var(--radius); background: #fff; color: var(--purple-icon); font-size: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.media__badge--right { right: -32px; left: auto; }
.media__badge--grad { width: 70px; height: 70px; border-radius: 50%; background: var(--grad-icon); color: #fff; box-shadow: var(--shadow-icon); }
.media__badge--low { top: auto; bottom: 25%; }

/* text next to an image that runs to the edge of the screen */
.bleed { position: relative; }
.bleed__media { position: absolute; inset: 0 50% 0 0; background: #e9e9e9 center / cover no-repeat; }
.bleed--right .bleed__media { inset: 0 0 0 50%; }
.bleed__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.bleed__text { grid-column: 2; padding: 60px 0 60px 50px; }
.bleed--right .bleed__text { padding: 60px 50px 60px 0; }
.bleed--right .bleed__text { grid-column: 1; }

/* ---------------------------------------------------------------- home */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature { display: flex; gap: 20px; }
.h3 { font-size: 21px; font-weight: 600; line-height: 1.5; }
.feature .h3 { margin: 0 0 10px; }

.about__media { position: relative; max-width: 500px; }
.about__media .media__badge { top: 40px; left: auto; right: -32px; }
.about__media .media__badge--grad { top: auto; bottom: 120px; left: -35px; right: auto; }

.panel-wrap { padding-block: 145px 100px; }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 60px; max-width: 1225px; margin: 0 auto; padding: 45px 110px 60px 125px; border-radius: 40px; }
.panel .title { font-size: 34px; line-height: 1.1; }
.panel__media { min-height: 492px; margin: -145px 0 0; border-radius: var(--radius-lg); background: center / cover no-repeat; }
.panel .actions { margin-top: 30px; }

/* references: client cards in a row that slides sideways, edge to edge of the screen */
.refs__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 40px; }
.refs__head > div:first-child { max-width: 640px; }
.refs__arrows { display: none; gap: 12px; }
.js .refs__arrows { display: flex; }
.refs__arrow { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: var(--shadow-card); cursor: pointer; transition: background .2s, color .2s; }
.refs__arrow:hover { background: var(--grad); color: #fff; }
.refs__arrow .icon { width: 14px; height: 14px; }
.refs__arrow[data-step="-1"] .icon { transform: scaleX(-1); }
/* the track spans the section; --edge lines the first card up with the container (100% = section width in both uses) */
.refs__track { --edge: max(15px, (100% - 1110px) / 2); display: grid; grid-auto-flow: column; grid-auto-columns: min(350px, 82vw); gap: 30px; margin: -20px 0 -50px; padding: 20px var(--edge) 50px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none; cursor: grab; }
.refs__track::-webkit-scrollbar { display: none; }
.refs__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.ref-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-card); scroll-snap-align: start; }
.ref-card__logo { display: grid; place-items: center; height: 140px; padding: 0 30px; background: #f2f6fa; }
.ref-card__logo img { max-width: 100%; height: auto; mix-blend-mode: multiply; } /* the logo's white background takes the tile colour */
.ref-card__logo--dark { background: #172131; }
.ref-card__logo--dark img { mix-blend-mode: normal; }
.ref-card__body { display: flex; flex: 1; flex-direction: column; padding: 28px 30px 30px; }
.ref-card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; line-height: 1.5; }
.ref-card__label { margin: 0 0 12px; color: var(--heading); font-size: 14px; font-weight: 600; }
.ref-card .checks { margin: 0 0 25px; }
.ref-card .checks li { align-items: flex-start; gap: 12px; margin-bottom: 10px; color: #515b60; font-size: 14px; font-weight: 400; line-height: 1.55; }
.ref-card .checks li > .icon { width: 9px; height: 9px; padding: 5px; margin-top: 1px; }
.ref-card__links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: auto; }
.ref-card__links a { display: inline-flex; align-items: center; gap: 7px; color: var(--heading); font-size: 14px; font-weight: 600; text-decoration: underline 2px var(--blue); text-underline-offset: 5px; }
.ref-card__links a:hover { color: var(--blue); }
.ref-card__links .icon { width: 9px; height: 9px; color: var(--blue); transform: rotate(-45deg); }

/* ---------------------------------------------------------------- FAQ */
.faq-head { display: grid; grid-template-columns: 4fr 7fr; align-items: start; gap: 20px 60px; margin-bottom: 50px; }
.faq-head .title { margin: 0; line-height: 1.4; }
.faq-intro { margin: 0; color: #6ec1e4; font-family: "Open Sans", sans-serif; font-size: 16px; line-height: 1.7; }
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 0 30px; }
.faq { border-top: 1px solid var(--line); }
.faq-cols > div > .faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; color: #000; font-size: 16px; font-weight: 500; line-height: 1.6; list-style: none; cursor: pointer; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 12px; height: 12px; transition: transform .25s; }
.faq summary:hover, .faq[open] summary { color: var(--blue); }
.faq[open] summary .icon { transform: rotate(45deg); }
.faq__body { padding: 0 30px 20px 0; }
.faq-more { margin: 50px 0 25px; color: #45454a; font-size: 16px; text-align: center; }

/* ---------------------------------------------------------------- contact + forms */
.contact { display: grid; grid-template-columns: 490px 1fr; align-items: start; gap: 60px; }
.card { padding: 50px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-card); }
.card .title { font-size: 34px; line-height: 1.4; }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.info-card { padding: 30px 20px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-card); text-align: center; }
.info-card .icon-circle { margin: 0 auto 20px; font-size: 18px; }
.info-card h2 { margin: 0 0 10px; font-size: 21px; font-weight: 600; line-height: 1.5; }
.info-card a { color: #000; }
.map { margin-top: 40px; }
.map iframe { display: block; width: 100%; height: 400px; border: 0; border-radius: var(--radius-lg); }

.form { margin-top: 30px; }
.form__field { margin: 0 0 15px; }
.form label { display: block; margin-bottom: 6px; padding: 0; color: var(--text); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; min-height: 52px; padding: 15px 25px; border: 1px solid #dbdbdb; border-radius: var(--radius); background: #fff; color: #000; font-size: 15px; line-height: 1.3; transition: border-color .2s, box-shadow .2s;
}
.form textarea { height: 237px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(49, 158, 238, .15); }
.form ::placeholder { color: var(--text); opacity: 1; }
.form .btn { margin-top: 5px; }
.notice { margin: 20px 0 0; padding: 12px 18px; border: 2px solid; border-radius: var(--radius); font-size: 14px; line-height: 1.6; }
.notice--sent { border-color: #46b450; background: #f2faf2; color: #2a6b2f; }
.notice--invalid { border-color: #ffb900; background: #fffaeb; color: #7a5a00; }
.notice--failed { border-color: #dc3232; background: #fdf2f2; color: #9b1c1c; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* domain search */
.domain-search { max-width: 610px; margin: 40px auto 0; }
.domain-search__box { display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 18px; border-radius: 50px; background: #fff; box-shadow: 0 15px 30px rgba(4, 12, 15, .16); }
.domain-search input { flex: 1; min-width: 0; padding: 8px 12px; border: 0; background: none; color: #000; font-size: 20px; outline: none; }
.domain-search input::placeholder { color: var(--text); opacity: 1; }
.domain-search__box:focus-within { box-shadow: 0 15px 30px rgba(4, 12, 15, .16), 0 0 0 3px rgba(49, 158, 238, .25); }
.domain-search[aria-busy="true"] button { opacity: .6; cursor: wait; }
.domain-result { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 20px; border-radius: var(--radius); text-align: left; }
.domain-result .icon { width: 18px; height: 18px; }
.domain-result--ok { background: #dff0d8; color: #3c763d; }
.domain-result--taken { background: #f2dede; color: #a94442; }
.domain-result--warn { background: #fcf8e3; color: #8a6d3b; }

/* ---------------------------------------------------------------- legal pages */
.legal { padding-block: 40px 80px; }
.legal h1 { margin-bottom: 25px; font-size: 22px; font-weight: 600; line-height: 1.5; }
.legal h2, .legal h3 { margin: 30px 0 15px; font-size: 18px; font-weight: 600; }
.legal ul, .legal ol { margin: 0 0 1.28em; padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.legal ul li::marker { color: var(--blue); }
.legal a { color: #000; }
.legal a:hover { color: var(--blue); }
.imprint { line-height: 1.7; }
.imprint h2 { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.imprint p { margin-bottom: 1em; }
.imprint__note { margin-top: 50px; }
.imprint a:hover { color: var(--blue); }
.imprint strong { color: #555; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: linear-gradient(#343c47 0%, #1f232c 98%); color: #a8abaf; }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; padding-block: 55px 65px; }
.site-footer__company { margin: 25px 0 10px; color: #d9dcdf; font-size: 20px; font-weight: 600; line-height: 1.5; }
.site-footer__title { margin: 22px 0 25px; color: #fff; font-size: 18px; font-weight: 500; line-height: 1.2; }
.site-footer__links { margin: 0; padding: 0; list-style: none; }
.site-footer__links li { margin-bottom: 5px; }
.site-footer__links button { padding: 0; border: 0; background: none; cursor: pointer; }
.site-footer__links a:hover, .site-footer__links button:hover { color: #fff; }
.site-footer__text { margin: 0; }
.fb-page { width: 100%; max-width: 340px; height: 330px; overflow: hidden; border-radius: 12px; background: #fff; }
.fb-page iframe { display: block; width: 340px; max-width: 100%; height: 330px; border: 0; }
.socials { display: flex; gap: 10px; margin-top: 25px; }
.socials a { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #fff; transition: background .2s; }
.socials a:hover { background: var(--grad); color: #fff; }
.socials .icon { width: 14px; height: 14px; }
.site-footer__bottom { padding: 10px 15px; border-top: 1px solid rgba(255, 255, 255, .08); background: #272d36; color: rgba(255, 255, 255, .59); font-size: 14px; line-height: 2.4; text-align: center; }

.to-top { position: fixed; right: 25px; bottom: 25px; z-index: 40; display: grid; place-items: center; width: 50px; height: 50px; border-radius: var(--radius); background: var(--grad); color: #fff; box-shadow: 0 10px 25px rgba(33, 209, 176, .3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: #fff; }
.to-top .icon { width: 14px; height: 14px; }

/* scroll-in animation (site.js adds .js and .is-visible) */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1024px) {
  :root { --header-h: 80px; }
  .section { padding-block: 70px; }
  .logo img { width: 64px; height: 64px; }
  .nav-toggle { display: grid; }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - var(--header-h)); padding: 5px 15px 25px; overflow-y: auto; background: #fff; box-shadow: 0 25px 30px rgba(0, 0, 0, .08); }
  .site-nav.is-open { display: flex; }
  .menu { flex-direction: column; align-items: stretch; }
  .menu__link { justify-content: space-between; width: 100%; height: auto; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .submenu { position: static; display: none; min-width: 0; padding: 5px 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .menu__item--sub.is-open .submenu { display: block; }
  .submenu__link { margin: 0; padding: 8px 15px; }
  .site-nav__cta { align-self: flex-start; margin: 20px 0 0; }

  .hero-home { min-height: 0; padding-block: 100px; }
  .split, .split--media-wide, .split--text-wide, .features, .faq-head, .faq-cols, .contact { grid-template-columns: 1fr; }
  .split .media { max-width: 640px; }
  .media__badge { left: 15px; top: 15px; }
  .media__badge--right { right: 15px; left: auto; }
  .about__media { display: none; }
  .bleed__media { position: relative; inset: auto; height: 340px; }
  .bleed__grid { display: block; }
  .bleed__text, .bleed--right .bleed__text { padding: 50px 0 0; }
  .panel-wrap { padding-block: 0 70px; }
  .panel { grid-template-columns: 1fr; padding: 45px 30px; }
  .panel__media { min-height: 300px; margin: 0; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .faq-cols > div + div > .faq:first-child { border-top: 0; }
  .faq-cols > div:first-child > .faq:last-child { border-bottom: 0; }
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 767px) {
  .section { padding-block: 60px; }
  .title, .page-head h1, .page-head h2 { font-size: 28px; line-height: 1.4; }
  .hero-home { padding-block: 80px; background: linear-gradient(180deg, var(--purple-top) 0%, var(--purple-bottom) 100%); }
  .hero-home h1 { font-size: 38px; }
  .hero-home__lead { font-size: 18px; }
  .hero-photo { min-height: 340px; padding-block: 60px; }
  .hero-photo::after { background: rgba(255, 255, 255, .72); }
  .hero-photo--light::after { background: rgba(8, 12, 24, .6); }
  .hero-photo p { font-size: 17px; }
  .hero-dark { padding-block: 60px; }
  .hero-dark h1 { font-size: 30px; line-height: 1.4; }
  .feature { flex-direction: column; align-items: flex-start; }
  .panel .title { font-size: 28px; }
  .card { padding: 30px 20px; }
  .refs__head { margin-bottom: 30px; }
  .refs__track { gap: 15px; }
  .info-cards { grid-template-columns: 1fr; }
  .domain-search input { font-size: 17px; padding-inline: 4px; }
  .site-footer__grid { grid-template-columns: 1fr; text-align: center; }
  .site-footer .logo, .socials { justify-content: center; }
  .fb-page { margin-inline: auto; }
  .to-top { right: 15px; bottom: 15px; }
}
@media print { .js [data-reveal] { opacity: 1; transform: none; } .site-header, .to-top { display: none; } }
