:root{
    --section-margin: 20px;
}

*,::after,::before {
    box-sizing:border-box;
    margin:0;
    padding:0
}


.bold {
    font-weight:700
}

.color-primary{
    color: var(--color-primary);
}

.gap-200{
    gap: 200px !important;
}

.text-justify{
    text-align: justify;
}

.cases {
    background:#f2f2f2;
    border-top-left-radius:60px;
    border-top-right-radius:60px;
    margin-top:-60px;
    padding-bottom:130px;
    padding-top:100px
}

.page-item__paragraph {
    text-align: justify;
    font-size: 0.9em;
}

/* Subtitle (h2) font size */
.page-item__subtitle {
    font-size: 1.2em;
}

/* Section headings (h3) font size */
.page-item__heading {
    font-size: 1.1em;
}

/* Container margins for bigger left/right spacing */
.container {
    margin-left: 10%;
    margin-right: 10%;
}

/*
   We create a NEW class (page-title-with-line) so we avoid
   any line added by .page-item__heading or .page-item__title in main.css
*/
h1.page-title-with-line {
    /* Keep the desired font size for the main title */
    font-size: 1.3em;
    /* Center it, if you wish; remove text-align if you prefer left alignment */
    text-align: center;
    /* Position relative for the pseudo-element */
    position: relative;
    /* Override any border or background that might come from main.css */
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    margin: 0; /* Tweak if you need spacing above/below */
}

/* Single symmetrical fade line under the h1 */
h1.page-title-with-line::after {
    content: "";
    display: block;
    height: 4px; /* thickness of the line */
    margin: 0.5em auto 0; /* spacing above line; auto horizontally centers it */
    width: 100%;
    /* Symmetrical gradient: transparent edges, solid in the middle */
    background: linear-gradient(
            to right,
            transparent 0%,
            #6D2B2B 20%,
            #6D2B2B 80%,
            transparent 100%
    );
    /* Ensure it overrides any other style */
    border: none !important;
    box-shadow: none !important;
}

.cases__card {
    align-items:center;
    background:#fff;
    border:2px solid var(--color-primary);
    border-radius:var(--border-radius);
    font-size:1.5625em;
    font-weight:400;
    height:165px;
    letter-spacing:0;
    line-height:1.44;
    max-height:165px;
    text-align:center
}

.cases__card-content {
    position:relative;
    word-break:break-word
}

.cases__card-content::before {
    bottom:0;
    height:2px
}

.cases__card-content::before,.footer::before {
    background:linear-gradient(to right,transparent,var(--color-tertiary),transparent);
    content:"";
    left:0;
    position:absolute;
    right:0;
    transform:translateY(5px)
}

.cases__cards {
    display:grid;
    gap:15px;
    grid-template-columns:repeat(4,1fr);
    padding-left:10px;
    padding-right:10px
}

.cases__title {
    font-size:2.5em;
    line-height:2.65;
    margin-bottom:33px;
    text-align:center
}

.collapse__button {
    background:radial-gradient(157.99% 815.57% at 145.4% 128.62%,#6b2e2f 0,#a9604e 100%);
    border-bottom:none;
    border-radius:30px 30px 0 0;
    bottom:0;
    color:#fff;
    opacity:0;
    transition:opacity .3s ease
}

.collapse__button,.expand__button {
    align-items:center;
    background:#fff;
    border:var(--border-thickness) solid var(--color-primary);
    color:var(--color-tertiary);
    font-weight:400;
    height:57px;
    letter-spacing:1px;
    min-width:250px;
    padding:0;
    position:absolute;
    right:15%;
    width:330px
}

.container {
    margin:0 auto;
    max-width:1920px;
    padding-left:var(--container-padding);
    padding-right:var(--container-padding)
}

.quote-content {
    background:radial-gradient(110.77% 307.94% at -10.94% -22.09%,#6b2e2f 0,#a9604e 100%);
    line-height:1.44;
    position:relative;
    text-align:justify
}

.quote-content a {
    color:#fff;
    text-decoration:underline
}

.quote-content a:hover,.schedule-button:hover,.invite__button a,.invite__button a:hover {
    color:#fff
}

.quote-content p {
    position:relative;
    z-index:10
}

.quote-content__bg-text {
    bottom:38px;
    position:absolute;
    right:0;
    z-index:1
}

.quote-content__container {
    color:#fff;
    font-size:1.5625em;
    padding-bottom:70px;
    padding-top:70px
}

.quote-content__container p {
    z-index:3
}

.demo {
    background:linear-gradient(to bottom,#ffffffb3,#fff0 30%),url(../assets/img/bg-demo.png) no-repeat;
    background-position:0 0;
    background-size:cover;
    height:1190px
}

.demo__container {
    height:100%
}

.demo__iframe {
    height:1130px;
    width:1450px
}

.demo__video {
    bottom:230px;
    margin-top:173px;
    position:relative
}

.expand {
    margin-bottom:128px;
    margin-top:10px
}

.expand__button {
    border-radius:0 0 28px 28px;
    border-top-color:var(--color-tertiary);
    top:-10px;
    transition:background-color .3s ease
}

.expand__button,.collapse__button {
    font-size:1.5em
}

.expand__content {
    max-height:0;
    overflow:hidden;
    padding-left:20px;
    text-align:justify;
    transition:max-height .5s ease
}

.expand__content .custom-font-size {
    font-size:1.3em
}

.expand__content .empty-field {
    height:1em
}

.expand__content p, .expand__content li {
    font-size:1.4625em;
    line-height:2.25
}

.expand__content ul{
    margin-left: 20px;
}

.expand__item {
    display:inline-block;
    position:relative;
    width:100%
}

.expand__item-last:after {
    bottom:-10px
}

.expand__item-last:after,.expand__item::before {
    background:linear-gradient(to right,transparent,#6b2e2e,transparent);
    content:"";
    height:var(--decorative-line-height);
    left:0;
    position:absolute;
    right:0;
    transform:translateY(-10px);
    z-index:-1
}

.expand__item::before {
    top:0
}

.expand__title {
    font-size:2.2em;
    font-weight:400;
    line-height:2.65;
    padding-bottom:30px;
    padding-left:20px;
    padding-top:10px;
    width:80%
}

.expand__title--last {
    line-height:1.25
}

.flex {
    display:flex
}

.flex-center {
    display:flex;
    justify-content:center
}

.footer {
    font-size:1.25em;
    line-height:53px;
    position:relative
}

.footer::before {
    height:3px;
    top:-10px;
    z-index:-1
}

.footer__flex {
    padding-bottom:24px;
    padding-top:24px
}

.footer__flex,.footer__links {
    display:flex;
    justify-content:space-between
}

.footer__links {
    width:33%
}

.gray-decorator {
    background:#f2f2f2;
    height:330px;
    width:100%
}

.gray-decorator,.who__card::before {
    bottom:0;
    left:0;
    position:absolute;
    z-index:-1
}

.header-hero-wrapper {
    background:url(../assets/img/bg-hero.png) no-repeat;
    background-position:100% 1px;
    background-size:contain;
    /*height:1000px*/
}

.header__burger {
    cursor:pointer;
    display:none;
    flex-direction:column;
    gap:4px
}

.header__burger span {
    background-color:var(--color-tertiary);
    display:block;
    height:3px;
    transition:transform .3s ease;
    width:30px
}

.header__burger.active span:nth-child(1) {
    transform:translateY(7px) rotate(45deg)
}

.header__burger.active span:nth-child(2) {
    opacity:0
}

.header__burger.active span:nth-child(3) {
    transform:translateY(-7px) rotate(-45deg)
}

.header__button {
    white-space:nowrap
}

.header__close-button {
    background-color:var(--color-tertiary);
    border:0;
    border-radius:var(--button-border-radius);
    color:#fff;
    cursor:pointer;
    display:none;
    font-size:1em;
    margin-top:auto;
    padding:10px 20px;
    width:100%
}

.header__contact {
    align-items:center;
    display:flex;
    flex-direction:column;
    font-size:1.5625em;
    left:50px;
    position:relative
}

#index-page .header__contact, #index-page .header__logo {
    flex:1
}


.header__container {
    align-items:center;
    display:flex;
    justify-content:space-between;
    margin:0 auto;
    max-width:1920px;
    padding:25px var(--header-padding);
    padding-bottom:6px;
    padding-top:25px
}

.header__logo {
    bottom:8px
}

.header__logo,.header__nav,.expand__container,.policy_title,.terms__title,.page-item__title {
    position:relative
}

.header__mobile-contact,.enable-on-mobile,.why-this-work__card .why-this-work__card-title {
    display:none
}

.header__nav {
    align-items:center;
    bottom:9px;
    display:flex;
    right:1px;
    transition:transform .3s ease
}

.header__nav-item {
    list-style:none
}

.header__nav-list {
    display:flex;
    font-size:1.5625em;
    gap:85px
}

.header-nav__container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.nav-item__list{
    list-style: none;
    display: none;
    position: absolute;
    top: 100%;
}

.nav-item__list-item{
    margin-bottom: 20px;
}

.nav-item__heading{
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item__heading{
    cursor: pointer;
    margin-bottom: 20px;
}

.nav-item__list{
    width: 100%;
    padding: 20px;
    padding-bottom: 0;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    border: 1px solid #6b2e2f;
    background: white;
    z-index: 4;
    border-radius: 5px;
}

.nav-item:hover .nav-item__list{
    display: block;
}

.nav-item{
    font-size: 1.6em;
    color: #6b2e2f;
}

.nav-item:hover img{
    transform: rotate(90deg);
}


.header__overlay {
    background:#00000080;
    display:none;
    height:100vh;
    left:0;
    position:fixed;
    top:0;
    width:100vw;
    z-index:99
}

.header__phone {
    line-height:2.64
}

.hero__container {
    align-items:center;
    display:flex;
    flex-direction:column;
    padding-top:143px
}

.hero__subtitle {
    font-size:1.4em;
    font-weight:400;
    letter-spacing:0;
    line-height:2.651;
    margin-bottom:49px;
    position:relative;
    top:-2px
}

.hero__text {
    font-size:2.2em;
    line-height:2.5
}

.hero__text,.highlight {
    color:var(--color-tertiary)
}

.hero__title {
    -webkit-user-drag:none;
    color:var(--color-primary);
    margin-bottom:28px;
    user-select:none
}

.hero__title img {
    max-width:60vw
}

.highlight__underline .long-block {
    height:80px
}

.highlight__underline p {
    line-height:2.5;
    margin-bottom:2em;
    position:relative
}

.highlight__underline p:before {
    background:linear-gradient(to right,transparent,var(--color-tertiary),transparent);
    bottom:0;
    content:"";
    height:2px;
    left:0;
    position:absolute;
    right:0;
    transform:translateY(5px)
}

.invite__button {
    background:radial-gradient(135.24% 553.46% at 123.74% 129.67%,#6b2e2f 0,#a9604e 100%);
    border-radius:var(--button-border-radius);
    font-size:1.5625em;
    line-height:2.1;
    margin:0 auto;
    padding:0 39px;
    width:fit-content
}

.invite__contact {
    font-size:1.5625em;
    line-height:36px;
    margin-bottom:80px
}

.invite__contact,.invite__title,.center {
    text-align:center
}

.invite__container {
    padding-bottom:146px;
    padding-top:215px
}

.invite__title {
    font-size:2.5em;
    line-height:50px;
    margin-bottom:50px
}

.long-block {
    height:50px
}

.page-item {
    text-align:justify
}

.page-item__heading,.policy__heading,.terms__heading {
    font-size:1.6em
}

.page-item__subtitle {
    font-size:2em;
    margin-bottom:2em
}

.policy,.terms,.page-item {
    margin-bottom:100px;
    margin-top:100px
}

.policy__heading,.terms__heading,.page-item__heading {
    margin-bottom:1em
}

.policy__paragraph,.policy__updated-date,.terms__paragraph,.terms__updated-date,.page-item__paragraph {
    font-size:1.5625em;
    line-height:1.44;
    margin-bottom:.8em
}

.policy_title::before,.terms__title::before,.page-item__title::before {
    background:linear-gradient(to right,#6b2e2e,transparent);
    bottom:0;
    content:"";
    height:var(--decorative-line-height);
    left:0;
    position:absolute;
    right:0;
    transform:translateY(10px);
    z-index:-1
}

.rounded-bottom {
    background:#f2f2f2;
    border-top-left-radius:60px;
    border-top-right-radius:60px;
    height:70px
}

.schedule-button {
    background:radial-gradient(135.24% 553.46% at 123.74% 129.67%,#6b2e2f 0,#a9604e 100%);
    font:400 Verdana,sans-serif;
    letter-spacing:0;
    line-height:2.1;
    padding:0 30px
}

.schedule-button,button {
    border:0;
    border-radius:var(--button-border-radius);
    color:#fff;
    cursor:pointer
}

.who {
    padding-bottom:30px;
    position:relative
}

.who__card {
    display:flex;
    flex-direction:column;
    margin-bottom:30px;
    position:relative;
    width:100%
}

.who__card-photo {
    margin-bottom:40px
}

.who__card img{
    width: 370px;
}

.who__card-sign {
    font-size:1.8751em
}

.who__card::before {
    content:"";
    height:var(--decorative-line-height);
    right:0;
    transform:translateY(10px)
}

.who__card:first-of-type {
    align-items:end
}

.who__card:first-of-type::before {
    background:linear-gradient(to right,#6b2e2e,transparent)
}

.who__card:last-of-type {
    align-items:start
}

.who__card:last-of-type::before {
    background:linear-gradient(to right,transparent,#6b2e2e)
}

.who__cards {
    gap:280px
}

.who__container {
    padding-top:50px
}

.who__title {
    font-size:2.5em;
    margin-bottom:94px;
    text-align:center
}

.why-this-work {
    margin-top:-236px;
    padding-bottom:126px;
    position:relative
}

.why-this-work__card {
    background:#fff;
    border:2px solid var(--color-primary);
    border-radius:30px;
    padding:23px 27px;
    width:33%
}

.why-this-work__card-content {
    font-size:1.5625em;
    line-height:1.44;
    padding-bottom:23px;
    text-align:justify
}

.why-this-work__card-title {
    font-size:1.5625em;
    font-weight:400;
    position:relative;
    width:33%
}

.why-this-work__card-titles {
    display:flex;
    padding-bottom:83px;
    padding-top:70px
}

.why-this-work__cards {
    display:flex;
    gap:20px
}

.why-this-work__cards-bottom {
    margin-top:-32px
}

.why-this-work__container {
    position:relative;
    top:0
}

.why-this-work__header {
    background:#f2f2f2;
    border-top-left-radius:60px;
    border-top-right-radius:60px
}

.why-this-work__title {
    font-size:2.5em;
    font-weight:400;
    margin-bottom:47px;
    text-align:center
}

:root {
    --border-radius:30px;
    --border-thickness:2px;
    --breakpoint-hd:1440px;
    --breakpoint-laptop:1024px;
    --breakpoint-phone:768px;
    --button-border-radius:50px;
    --color-primary:#A95F4D;
    --color-secondary:#935F4C;
    --color-tertiary:#6B2E2E;
    --container-padding:265px;
    --decorative-line-height:3px;
    --header-padding:119px
}

a {
    text-decoration:none
}

a,body {
    color:#000
}

a:hover {
    color:var(--color-primary)
}

body {
    background-color:#fff;
    box-sizing:border-box;
    font-family:"Verdana",sans-serif
}

button {
    padding:.5em 1em
}

h2 {
    font-weight:400
}

html {
    font-size:clamp(16px,calc(16px + .1vw),18px);
    line-height:1;
    scrollbar-width:thin
}

#about-page .photo-and-content{
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

#about-page .article-image__block img {
    width: 300px;
    /*max-width: 100%;*/
}


@media (min-width: 2560px) {
    .why-this-work__card-titles {
        font-size:.93em
    }
}

.justify-between {
    justify-content:space-between
}

.page-item .schedule-button {
    padding-bottom:.1em;
    padding-top:.1em
}

.page-item__content-block {
    margin-bottom:3em
}

.page-item__title {
    font-size:2em
}

.vertical-split {
    background:#000;
    height:100%;
    width:2px
}

.page-item p{
    text-align: justify;
}

.article-content-wrapper{
    margin-bottom: var(--section-margin);
}

/* ===== Article Content Styling ===== */

.article-content-wrapper {
    margin: var(--section-margin) auto;
    padding: 40px 20px;
    background: #fff;
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.article-content__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.article-content__title {
    font-size: 2.2em;
    color: var(--color-tertiary);
    text-align: center;
    margin-bottom: 0.5em;
    position: relative;
}

.article-content__title::after {
    content: "";
    display: block;
    height: 3px;
    width: 100%;
    margin: 0.4em auto 0;
    background: linear-gradient(to right, transparent, var(--color-tertiary), transparent);
}

.article-content__subtitle {
    font-size: 1.3em;
    font-weight: 400;
    color: var(--color-primary);
    text-align: center;
    /*margin-bottom: 4.5em;*/
}

.article-content__body {
    font-size: 1.5em;
    line-height: 1.7;
    margin-top: 4.5em;
    color: #000;
    text-align: justify;
}

.article-content__body h2.article-content__heading {
    font-size: 1.4em;
    color: var(--color-primary);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    position: relative;
}

.article-content__body h2.article-content__heading::before {
    content: "";
    display: block;
    height: 2px;
    width: 60px;
    background: var(--color-tertiary);
    margin-bottom: 0.4em;
}

.article-content__body p {
    margin-bottom: 1em;
}

.article-content__body ul {
    margin: 1em 0 1em 1.5em;
    line-height: 1.6;
}

.article-content__body li {
    margin-bottom: 0.5em;
}

.article-content__body .highlight {
    color: var(--color-tertiary);
    font-weight: 700;
}

.examples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 5px;
    margin-top: 30px;
}

.example-item {
    background: #fff;
    border: 1px solid #e5e7eb; /* светло-серая рамка */
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); /* лёгкая тень */
    padding: 16px 2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    align-items: center;
    display: flex;
    flex-direction: column;

}

.example-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.example-item__video {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.example-item__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin: 0;
}


/* =========================
   Базовые стили
========================= */
:root {
    --legal-primary: #7a3b2e;     /* основной акцентный */
    --legal-accent: #5c2d23;      /* hover оттенок */
    --legal-secondary: #1a1a1a;   /* текстовые заголовки */
    --legal-neutral: #555;        /* второстепенный текст */
    --border: #e0e0e0;
    --bg-card: #fff;
    --bg-body: #f9fafb;
    --gradient-primary: linear-gradient(135deg, #9c4937, #7a3b2e);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    background: var(--bg-body);
    color: var(--legal-secondary);
    line-height: 1.6;
}

/* =========================
   Заголовок секции
========================= */
.capabilities__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.capabilities__container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--legal-secondary);
}

.capabilities__container p {
    text-align: justify;
    font-size: 1.5rem;
    color: var(--legal-neutral);
    max-width: 720px;
    margin: 0 auto 3rem;
}

/* =========================
   Сетка карточек
========================= */
.capabilities__container .grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .capabilities__container .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .capabilities__container .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================
   Карточки
========================= */
.group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.group:hover {
    border-color: rgba(122, 59, 46, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.group h3 {
    font-size: 1.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--legal-secondary);
    transition: color 0.3s ease;
}

.group:hover h3 {
    color: var(--legal-primary);
}

.group p {
    font-size: 1.5rem;
    color: var(--legal-neutral);
    margin: 0;
}

.group .flex-shrink-0 {
    /*width: 3rem;*/
    /*height: 3rem;*/
    border-radius: 0.5rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    /*width: 50px;*/
    /*height: 50px;*/
    padding: 10px;
    transition: transform 0.3s ease;
}



.group:hover .flex-shrink-0 {
    transform: scale(1.1);
}

.group svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: #fff;
}

/* =========================
   CTA кнопки
========================= */
.CTA-capabilities {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.CTA-capabilities h2 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.CTA-capabilities .flex {
    display: flex;
    /*flex-direction: column;*/
    gap: 1rem;
    align-items: stretch;
}

.capabilities__container .capability-item__inner{
    align-items: start;
}

@media (min-width: 640px) {
    .capabilities__container .flex {
        flex-direction: row;
        justify-content: start;
    }
}

.CTA-capabilities button {
    flex: 1;
    padding: 1.25rem 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 4rem;
}

.CTA-capabilities button svg {
    width: 20px;
    height: 20px;
}

.CTA-capabilities button:first-child {
    background: var(--legal-primary);
    color: #fff;
    border: none;
}

.CTA-capabilities button:first-child:hover {
    background: var(--legal-accent);
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.CTA-capabilities button:last-child {
    background: #fff;
    border: 1px solid var(--legal-primary);
    color: var(--legal-primary);
}

.CTA-capabilities button:last-child:hover {
    background: var(--legal-primary);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* =========================
   Footer
========================= */
.footer {
    padding: 2rem 1rem;
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer__container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer__flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}


.example-item__image-wrapper{
    width: 355px;
    height: 200px;
    overflow: hidden;
}

.example-item__img{
    width: 100%;
    cursor: pointer;
}

.example-item__modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 30px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.7);
}

.example-item__modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    border: 10px solid #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    border-radius: 8px;
}

.example-item__modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.example-item__modal-close:hover {
    color: #ccc;
}



@media (min-width: 640px) {
    .footer__flex {
        flex-direction: row;
    }
}

.footer__copyright {
    font-size: 1em;
    color: var(--legal-neutral);
}

.footer__links {
    display: flex;
    gap: 1rem;
}

.footer__links a {
    font-size: 1em;
    color: var(--legal-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: var(--legal-primary);
}




@media (max-width: 1920px) {
    html {
        font-size:12px
    }
}

@media (max-width: 1730px) {
    .hero__container {
        padding-left:200px;
        padding-right:200px
    }
}

@media (max-width: 1600px) {
    .container {
        padding-left:var(--container-padding);
        padding-right:var(--container-padding)
    }

    .expand__button {
        right:10%
    }

    .header__contact {
        left:0
    }

    .hero__title {
        display:flex;
        justify-content:center
    }

    .hero__title img {
        width:100%
    }

    :root {
        --container-padding:max(20px,calc(5vw));
        --header-padding:max(20px,calc(126px - 10vw))
    }

    ul.header__nav-list {
        gap:3em
    }
}

@media (max-width: 1340px) {
    .hero__container {
        font-size:.9em
    }
}

@media (max-width: 1280px) {
    .cases__cards {
        gap:10px
    }

    .collapse__button,.expand__button {
        right:10%;
        width:auto
    }

    .demo__iframe {
        max-width:100vw
    }

    .expand__title {
        width:70%
    }

    .hero__container {
        font-size:.8em
    }

    .hero__title img {
        width:100%
    }

    ul.header__nav-list {
        gap:1em
    }
}

@media (max-width: 1088px) {
    .cases__card {
        font-size:1.5em
    }

    .expand__title {
        line-height:1.5;
        max-width:60%
    }
    #nav-menu{
        overflow: scroll;
    }
    .header__mobile-contact{
        margin-bottom: 20px;
    }
    #nav-menu img{
        display: none;
    }

    .footer__flex {
        align-items:center;
        flex-direction:column
    }

    .footer__links {
        gap:20px;
        justify-content:center;
        width:100%
    }

    .nav-item__heading{
        margin-bottom: 0;
    }

    .nav-item{
        font-size: 0.8em;
    }

    .header-nav__container{
        flex-direction: column;
        align-items: start;
    }
    .nav-item__list{
        display: block;
        position: static;
    }
    .header-nav__container{
        gap: 5px;
    }

    .header__burger {
        display:flex
    }

    .header__close-button,.header__overlay.active {
        display:block
    }

    .header__contact,.why-this-work__card-titles {
        display:none
    }

    .header__mobile-contact {
        align-items:center;
        display:flex;
        flex-direction:column;
        gap:2px;
        margin-top:20px
    }

    .header__nav {
        align-items:flex-start;
        background-color:#fff;
        box-shadow:-4px 0 8px #0000001a;
        flex-direction:column;
        height:100vh;
        padding:20px;
        position:fixed;
        right:-100%;
        top:0;
        transition:.5s ease-out all;
        width:300px;
        z-index:100
    }

    .header__nav-list {
        flex-direction:column;
        gap:20px
    }

    .header__nav.active {
        right:0;
    }

    .hero__container {
        font-size:.7em
    }

    .who__cards {
        gap:100px
    }

    .why-this-work {
        margin-top:-70px
    }

    .why-this-work__card {
        padding-top:20px;
        position:relative;
        width:100%
    }

    .why-this-work__card .why-this-work__card-title {
        display:block;
        margin-bottom:1em;
        width:100%
    }

    .why-this-work__cards {
        display:flex;
        flex-direction:column;
        gap:20px
    }

    .why-this-work__title {
        margin-bottom:70px
    }
}

@media (max-width: 960px) {
    .cases__card {
        height:300px
    }

    .cases__cards {
        grid-template-columns:repeat(3,1fr)
    }

    .collapse__button,.expand__button {
        width:fit-content
    }

    .demo {
        height:auto;
        margin-bottom:20px
    }

    .header-hero-wrapper {
        height:auto;
        padding-bottom:50px
    }

    .hero__container {
        font-size:.9em;
        text-align:center
    }

    .hero__text {
        text-align:center
    }

    .notepad-hidden {
        display:none
    }

    .why-this-work,.invite__container {
        padding-bottom:50px;
        padding-top:100px
    }

    html {
        font-size:12px
    }
}

@media (max-width: 900px) {
    .demo__iframe {
        width:99vw
    }

    .expand {
        margin-top:40px
    }

    .header-hero-wrapper {
        /*max-height:100vh*/
    }
}

@media (max-width: 860px) {
    .collapse__button {
        border-bottom:none;
        border-bottom-left-radius:2px;
        border-bottom-right-radius:2px;
        bottom:7px
    }

    .collapse__button,.expand__button {
        border-color:var(--color-tertiary);
        border-width:1px;
        height:fit-content;
        min-width:170px;
        padding:10px;
        width:fit-content
    }

    .demo {
        max-height:630px
    }

    .demo__video {
        margin-top:0
    }

    .expand__button {
        border-top:none;
        border-top-left-radius:2px;
        border-top-right-radius:2px;
        top:-7px
    }

    .expand__button .optional-view {
        display:none
    }

    .header-hero-wrapper {
        background-size:cover
    }

    .who__cards {
        gap:40px
    }
}

@media (max-width: 800px) {
    .header-hero-wrapper {
        /*height:100vh;*/
        min-height:500px
    }

    .why-this-work {
        padding-bottom:0
    }
}

@media (max-width: 768px) {
    .cases__card {
        height:5em
    }

    .cases__cards {
        grid-template-columns:repeat(1,1fr)
    }

    .collapse__button {
        border-top-left-radius:6px;
        border-top-right-radius:6px
    }

    .expand__button {
        border-bottom-left-radius:6px;
        border-bottom-right-radius:6px
    }

    .header__nav {
        width:250px
    }

    .header__nav-list {
        gap:30px
    }

    .hero__container {
        font-size:1em;
        text-align:center
    }

    .long-block {
        height:60px
    }

    .mobile-hidden {
        display:none
    }

    .sm_flex-column {
        align-items:center;
        flex-direction:column;
        gap:10px
    }

    .who__card,.who__card img {
        width:100%
    }

    .who__cards {
        max-width:100vw;
        padding:0 20px
    }
    #about-page .photo-and-content{
        flex-direction: column;
    }
}

@media (max-width: 500px) {
    .cases__cards {
        padding-left:0;
        padding-right:0
    }

    .cases__title {
        font-size:2em
    }

    .collapse__button {
        border-width:2px
    }

    .collapse__button,.expand__button {
        width:200px
    }

    .demo {
        height:500px
    }

    .expand {
        margin-bottom:40px
    }

    .expand__title {
        max-width:100%;
        padding-top:40px;
        width:100%
    }

    .footer__copyright {
        line-height:1.5;
        text-align:center
    }

    .footer__copyright .enable-on-mobile {
        display:inline
    }

    .header-hero-wrapper {
        height:auto;
        max-height:none;
        min-height:auto
    }

    .header__logo {
        bottom:0
    }

    .header__logo img {
        width:100px
    }

    .hero__container {
        padding-top:50px
    }

    .hero__subtitle {
        text-align:center
    }

    .invite__button {
        white-space:nowrap
    }

    .invite__contact {
        margin-bottom:30px
    }

    .invite__contact p {
        align-items:center;
        display:flex;
        flex-direction:column
    }

    .invite__container {
        padding-bottom:40px;
        padding-top:40px
    }

    .invite__title {
        line-height:1.5;
        margin-bottom:10px
    }

    .who__card {
        display:flex;
        justify-content:flex-start
    }

    .who__card:first-of-type {
        justify-content:flex-start
    }

    .who__card:last-of-type {
        justify-content:flex-end
    }

    .who__cards {
        gap:40px;
        padding:0 20px
    }

    .why-this-work__card {
        padding:15px
    }

    .why-this-work__card-content {
        padding-bottom:0
    }

    html {
        font-size:10px
    }
}

@media (max-width: 375px) {
    .cases__cards {
        gap:5px
    }
}